CC = gcc
CFLAGS = -g -Wall -m32
SRC = $(wildcard *.c)               # list of source files
OBJS = $(patsubst %.c, %.o, $(SRC)) # list of object files

all : $(OBJS)                      # target

%.o : %.c
	$(CC) -o $@ $<; chmod +x $@

clean:
	rm -f *.o 
	rm -rf *.dSYM